package com.cr.front.authentication.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class DriverLicenseSaveParam {
    //姓名
    @NotEmpty(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名", required = true)
    String name;
    //性别
    @NotNull(message = "性别不能为空")
    @ApiModelProperty(value = "性别", required = true)
    Integer gender;
    //出生日期
    @NotEmpty(message = "出生日期不能为空")
    @ApiModelProperty(value = "出生日期", required = true)
    String birthday;
    //驾照正面
    @NotEmpty(message = "驾照正面不能为空")
    @ApiModelProperty(value = "驾照正面", required = true)
    String frontImage;
    //驾照反面
    @NotEmpty(message = "驾照反面不能为空")
    @ApiModelProperty(value = "驾照反面", required = true)
    String backImage;
    //证件号码
    @NotEmpty(message = "证件号码不能为空")
    @ApiModelProperty(value = "证件号码", required = true)
    String licenseNumber;
    //有效期开始
    @NotEmpty(message = "有效期开始不能为空")
    @ApiModelProperty(value = "有效期开始", required = true)
    String validDateStart;
    //有效期结束
    @NotEmpty(message = "有效期结束不能为空")
    @ApiModelProperty(value = "有效期结束", required = true)
    String  validDateEnd;
    //国籍
    @NotNull(message = "国籍不能为空")
    @ApiModelProperty(value = "国籍", required = true)
    Integer nationality;
    //地址
    @NotEmpty(message = "地址不能为空")
    @ApiModelProperty(value = "地址", required = true)
    String address;
    //紧急联系人
    @NotEmpty(message = "紧急联系人不能为空")
    @ApiModelProperty(value = "紧急联系人", required = true)
    String emergencyContact;
    //紧急联系人电话
    @NotEmpty(message = "紧急联系人电话不能为空")
    @ApiModelProperty(value = "紧急联系人电话", required = true)
    String emergencyPhone;
}
